﻿namespace PlayerService
{
    using System;
    using System.Collections.Generic;
    using System.ServiceModel;

    using DataClasses;

    [ServiceContract]
    public interface IMyPlayerService
    {
        [OperationContract]
        Playlist[] GetAllPlaylists();

        [OperationContract]
        Song[] GetPlSongs(Guid playlistid);

        [OperationContract]
        Song[] GetAllSongs();

        [OperationContract]
        void SaveSong(Song song);

        [OperationContract]
        void SavePlaylist(Playlist playlist);

        [OperationContract]
        void DeletePLSongsBy(Guid id, string nameid);

        [OperationContract]
        void DeleteSong(Song song);

        [OperationContract]
        void DeletePlaylist(Playlist playlist);
    }
}
